﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="原料发货.aspx.cs" Inherits="syc.Store.原料发货" %>
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>
<form id="form1" runat="server">

<asp:Label ID="IDList" runat="server" Text="" Visible="false"></asp:Label>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
    onselected="SqlDataSource1_Selected">
<SelectParameters>
<asp:Parameter Name="原料ID" Type="Int32" Size="4" Direction="Output"/>
<asp:Parameter Name="分厂" Type="Int32" Size="4" Direction="Output"/>
<asp:Parameter Name="供货" Type="String" Size="100" Direction="Output"/>
<asp:Parameter Name="磅重" Type="Double" Size="9" Direction="Output"/>
<asp:Parameter Name="支数" Type="Int32" Size="4" Direction="Output"/>
<asp:Parameter Name="库区" Type="Int32" Size="4" Direction="Output"/>
<asp:Parameter Name="供货ID" Type="Int32" Size="4" Direction="Output"/>
</SelectParameters>
</asp:SqlDataSource>
<asp:Label ID="Label_GongHuoID" runat="server" Text="" Visible="false"></asp:Label>

<div id="wintop" class="wintop">原料发货</div>
<asp:Panel ID="Panel1" runat="server" CssClass="panel">
<asp:Button ID="Button_Send" runat="server" Text="确认发货" UseSubmitBehavior="false" 
        CssClass="button" onclick="Button_Send_Click"/>
<input type="button" value="关 闭" class="button" onclick="parent.swin2_close();" />
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" CssClass="panel">
<table border=1 height=240 style="border-collapse:separate;font-size:14px;margin-top:7px;margin-bottom:24px;">
<tr>
<td colspan=4 align=center style="font-weight:bold; letter-spacing:6px;font-size:16px;border:none;">原料发货信息</td>
</tr>
<tr>
<td align=right>使用单位：</td>
<td><asp:DropDownList ID="FenChang" Width="120px" runat="server" Enabled="false">
    <asp:ListItem Text="" Value="0"></asp:ListItem>
    <asp:ListItem Text="一分厂" Value="1"></asp:ListItem>
    <asp:ListItem Text="二分厂" Value="2"></asp:ListItem>
    <asp:ListItem Text="三分厂" Value="3"></asp:ListItem>
    <asp:ListItem Text="四分厂" Value="4"></asp:ListItem>
    <asp:ListItem Text="五分厂" Value="5"></asp:ListItem>
</asp:DropDownList></td>
<td align=right>发货日期：</td>
<td><asp:TextBox ID="Date1" runat="server" CssClass="textbox" Width="120px"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date1').value, document.getElementById('Date1'));" /></td>
</tr>

<tr>
<td width=100 align=right>原料类别：</td>
<td width=180><asp:DropDownList 
    ID="LeiBie" runat="server" Width="160px" Enabled="false">
    <asp:ListItem Text="其他类别" Value=""></asp:ListItem>
    <asp:ListItem Text="油管光管(J55)" Value="1"></asp:ListItem>
    <asp:ListItem Text="套管光管(J55)" Value="2"></asp:ListItem>
    <asp:ListItem Text="油管接箍光管(J55)" Value="3"></asp:ListItem>
    <asp:ListItem Text="套管接箍光管(J55)" Value="4"></asp:ListItem>
    <asp:ListItem Text="成品油管接箍(J55)" Value="5"></asp:ListItem>
    <asp:ListItem Text="成品套管接箍(J55)" Value="6"></asp:ListItem>
    
    <asp:ListItem Text="油管光管(N80Q)" Value="101"></asp:ListItem>
    <asp:ListItem Text="套管光管(N80Q)" Value="102"></asp:ListItem>
    <asp:ListItem Text="油管接箍光管(N80Q)" Value="103"></asp:ListItem>
    <asp:ListItem Text="套管接箍光管(N80Q)" Value="104"></asp:ListItem>
    <asp:ListItem Text="成品油管接箍(N80Q)" Value="105"></asp:ListItem>
    <asp:ListItem Text="成品套管接箍(N80Q)" Value="106"></asp:ListItem>
    
    </asp:DropDownList></td>
<td width=100 align=right>规格：</td>
<td width=180><asp:Label ID="Label_GuiGe" runat="server" Text="..."></asp:Label></td>
</tr>
<tr>
<td width=100 align=right>供货单位：</td>
<td width=180><asp:Label ID="Label_GongHuo" runat="server" Text="..."></asp:Label></td>
<td width=100 align=right>库区：</td>
<td width=180><asp:Label ID="Label_KuQu" runat="server" Text=""></asp:Label></td>
</tr>
<tr>
<td align=right>磅重：</td>
<td width=180><asp:Label ID="Label_BangZhong" runat="server" Text=""></asp:Label> 吨</td>
<td align=right>支数：</td>
<td width=180><asp:Label ID="Label_ZhiShu" runat="server" Text=""></asp:Label> 支</td>
</tr>

</table>

</asp:Panel>

</form>
<script>
    var notice = '<%=this.Notice %>';
    if (notice != '') {
        parent.showmsgbox(notice);
    }
</script>
<script>
    var textboxs = document.getElementsByTagName("input");
    var i;
    for (i = 0; i < textboxs.length; i++) {
        if (textboxs[i].className == "textbox") {
            //textboxs[i].onchange = function(e) { this.className = "textbox-changed"; };
            textboxs[i].onfocus = function(e) { this.select(); };
        }
        else if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
            textboxs[i].onfocus = function(e) { this.select(); };
        }
    }

    document.onkeydown = function(e) {
        if (!e) e = window.event;
        var tag = e.srcElement;
        if (!tag) tag = e.target;
        if (tag.tagName == "INPUT" && tag.className == "textbox" || tag.tagName == "SELECT") {
            if (e.keyCode == 13) e.keyCode = 9;
        }
    }

    function makecalendar(d, o) {
        obj = o;
        idate = makedate(d);
        cdate = new Date(idate.getFullYear(), idate.getMonth(), 1);
        ds.style.left =(getObjectLeft(o) -30) + "px";
        ds.style.top = (getObjectTop(o) - 25) + "px";
        ds.style.display = 'block';
        showcalendar();
 
    }
</script>
</body>
</html>